+2005-05-11 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testgtk.c (on_alpha_window_expose): Fix to use
+ gdk_cairo_create(). (create_alpha_window): Hook up "response"
+ to close the window.
+
2005-05-11 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
+2005-05-11 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testgtk.c (on_alpha_window_expose): Fix to use
+ gdk_cairo_create(). (create_alpha_window): Hook up "response"
+ to close the window.
+
2005-05-11 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
+2005-05-11 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testgtk.c (on_alpha_window_expose): Fix to use
+ gdk_cairo_create(). (create_alpha_window): Hook up "response"
+ to close the window.
+
2005-05-11 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
cairo_pattern_t *pattern;
int radius;
- cr = gdk_drawable_create_cairo_context (widget->window);
+ cr = gdk_cairo_create (widget->window);
radius = MIN (widget->allocation.width, widget->allocation.height) / 2;
pattern = cairo_pattern_create_radial (widget->allocation.width / 2,
g_signal_connect (window, "destroy",
G_CALLBACK (gtk_widget_destroyed),
&window);
+
+ g_signal_connect (window, "response",
+ G_CALLBACK (gtk_widget_destroy),
+ NULL);
}
if (!GTK_WIDGET_VISIBLE (window))